package cn.snowheart.command.inter;

/**
 * 电灯的具体厂商接口
 *
 * @author liuwanxiang
 * @version 2019/07/04
 */
public class Light {

    private String name;

    public Light(String name) {
        this.name = name;
    }

    public void on() {
        System.out.printf("Light %s on~\n", name);
    }

    public void off() {
        System.out.printf("Light %s off~\n", name);
    }

}
